package handler

import (
	"time"
	"web_framework/model"
	"web_framework/pkg/constvar"
)

//4.3节207请求协议
type AppTaskNoticeHandle struct {
}

func (appTaskNoticeHandle AppTaskNoticeHandle) handleMsg(data model.Request, clientId string) (result model.Response) {

	var returnData interface{} = model.ResponseData{
		Sn:     data.Data.Sn,
		TaskID: data.Data.TaskID,
		Notice: data.Data.Notice,
	}

	return model.Response{
		Mid:   data.Mid,
		Mtype: constvar.MTypeTaskDealNoticeRequest,
		Time:  time.Now().Unix(),
		Data:  &returnData,
	}
}
